# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gfbgraph
pkgver=0.2.5
pkgrel=3
pkgdesc="GFBGraph is a GLib/GObject wrapper for the Facebook API"
url="https://wiki.gnome.org/Projects/GFBGraph"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	glib-dev
	gnome-online-accounts-dev
	gobject-introspection-dev
	gtk-doc
	json-glib-dev
	libsoup-dev
	rest-dev
	"
options="!check" # Need valid FB credentials to work, so let's not
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/gfbgraph/${pkgver%.*}/gfbgraph-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-gtk-doc
	make
}

package() {
	make DESTDIR="$pkgdir" install
	mv "$pkgdir"/usr/doc "$pkgdir"/usr/share/doc
}

sha512sums="
c3a1168935272377c211d95e4efcb8ed56d129589bcaa6e0d7b5dff7ca916f0c63dc30eb1a903aea3de51cb109ae787e985bdd9485fb97cd1b5b6971bea01a1e  gfbgraph-0.2.5.tar.xz
"
